package com.meteor.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meteor.framework.common.base.AutoEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;


/**
 * @author lynn
 * @date 2024/2/28
 *
 * @Description:单元管理
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("pf_unit")
public class Unit extends AutoEntity<Unit> {


    @Schema(description= "社区id")
    private String communityId;

    @Schema(description= "楼栋id")
    private String buildingId;

    @Schema(description= "单元名称")
    private String unitName;

    @Schema(description= "单元编号")
    private String unitCode;

    @Schema(description= "层数")
    private Integer unitLevel;

    @Schema(description= "建筑面积")
    private BigDecimal unitAcreage;

    @Schema(description= "是否有电梯 1=有 2=无")
    private String unitHaveElevator;

    @Schema(description = "组织id")
    private String orgId;

}
